package mysgoog.util;

public class BoardUtilTest {	
	
	public static void main(String[] arg){
		int[] test = new int[12];
		for (int i = 0; i < 12; i++)
			test[i] = i;
		print(4, test);
		print(3, BoardUtil.rotateBoard(3, 4, test, 90));
		print(4, BoardUtil.rotateBoard(3, 4, test, 180));
		print(3, BoardUtil.rotateBoard(3, 4, test, 270));
		print(4, BoardUtil.symBoard(3, 4, test, 0));
		print(4, BoardUtil.symBoard(3, 4, test, 1));
		print(4, BoardUtil.symBoard(3, 4, test, 2));
		
	}
	
	public static void print(int row, int[] data){
		System.out.println("data:");
		for (int i = 0; i < data.length; i++){
			if (i % row == 0) System.out.println();
			if (i >= 10) System.out.print(" " + data[i]);
			else System.out.print("  " + data[i]);
		}
		System.out.println();		
	}
}
